# Maintainer: Simon Zeni <simon@bl4ckb0ne.ca>
pkgname=py3-glad
pkgver=2.0.8
pkgrel=0
pkgdesc="Multi-Language Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specs"
url="https://github.com/Dav1dde/glad"
arch="noarch"
license="MIT AND Apache-2.0"
depends="py3-jinja2 python3"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
checkdepends="py3-mock py3-nose"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Dav1dde/glad/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/glad-$pkgver"
# only bigger integration tests
options="!check"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
ec964d0080c9714803f0464492b237039d2bede805d21aa9e487f3bf910447fd6440eeca59f3795dc4d5dd3b3df35101714fa21ea19eb29f6a021864a2310acd  py3-glad-2.0.8.tar.gz
"
